package com.damai.crypt;


import com.damai.utils.SingletonMap;

public class RsaUtil {
	
	public static final String SHA1WithRSA = "SHA1WithRSA";
	
	
	private static final SingletonMap<IRsa> MAP = new SingletonMap<IRsa>() {

		@Override
		protected IRsa create(String key) {
			return new BaseRsa(key);
		}
	};
	
	public static IRsa getRsa(String name){
		return MAP.get(name);
	}
	
	/**
	 * pkcs1加密
	 * @param name
	 * @return
	 */
	public static IRsa createRsaPkcs1(String name){
		
		return null;
	}
	
	
}
